const express = require('express');
const router = express.Router();
const { login, info, logout } = require('../control/accounts')
const { auth } = require('../middlewares/auth')

// 登录
router.post('/login', login);

// 用户信息
router.get('/info', auth, info);

// 用户退出登录
router.post('/logout', auth, logout);

module.exports = router;
